-- GENERATED SPELL FOR [Fleshripper] --


function spell0_1109(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1109', 572, 1)
end

function spell1_1109(pUnit, Event) --@Demoralizing Screech,n/a--
pUnit:FullCastSpellOnTarget(24423,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1109', 10000, 1)
end

function spell2_1109(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1109', 0, 1)
end

function spell3_1109(pUnit, Event) --@Muscle Tear,n/a--
pUnit:FullCastSpellOnTarget(12166,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1109', 5263, 1)
end

function Sorts_1109(pUnit, Event)
local choix_sorts_1109 = math.random(0, 3)
if choix_sorts_1109 == 0 then
pUnit:RegisterEvent('spell0_1109', 1, 1)
end
if choix_sorts_1109 == 1 then
pUnit:RegisterEvent('spell1_1109', 1, 1)
end
if choix_sorts_1109 == 2 then
pUnit:RegisterEvent('spell2_1109', 1, 1)
end
if choix_sorts_1109 == 3 then
pUnit:RegisterEvent('spell3_1109', 1, 1)
end
end

function mob1109_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1109', math.random(1500, 3000), 1)
end

function mob1109_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1109_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1109_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1109, 1, 'mob1109_Action')
RegisterUnitEvent(1109, 2, 'mob1109_Leave')
RegisterUnitEvent(1109, 3, 'mob1109_Kill')
RegisterUnitEvent(1109, 4, 'mob1109_Die')
